from flask import Flask, request, g

import news

app = Flask(__name__)

# 首页
@app.route('/')
def index():
    # print(request.url)
    # print(request.method)
    # print(request.cookies)
    # print(request.data)
    # print(request.args)
    # print(request.headers)
    g.name = "zs"
    news.func()
    return "index"


if __name__ == '__main__':
    # print(request.url)
    app.run(debug=True,)